home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 May / EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso / ghost / gs403src_amiga.lha / gs4.03 / libpng.mak.in < prev    next >
Text File  |  1997-03-16  |  4KB  |  105 lines

  1. #    Copyright (C) 1995, 1996 Aladdin Enterprises.  All rights reserved.
  2. # This file is part of Aladdin Ghostscript.
  3. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  4. # or distributor accepts any responsibility for the consequences of using it,
  5. # or for whether it serves any particular purpose or works at all, unless he
  6. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  7. # License (the "License") for full details.
  8. # Every copy of Aladdin Ghostscript must include a copy of the License,
  9. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  10. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  11. # under certain conditions described in the License.  Among other things, the
  12. # License requires that the copyright notice and this notice be preserved on
  13. # all copies.
  14.  
  15. # makefile for PNG (Portable Network Graphics) code.
  16.  
  17. # This partial makefile compiles the png library for use in the Ghostscript
  18. # PNG drivers.  You can get the source code for this library from:
  19. #   ftp://swrinde.nde.swri.edu/pub/png/src/lpng089c.zip   (libpng 0.89)
  20. #        or libpng-0.89.tar.gz
  21. # Please see Ghostscript's `make.txt' file for instructions about how to
  22. # unpack these archives.
  23. #
  24. # The specification for the PNG file format is available from:
  25. #   http://www.group42.com/png.htm
  26. #   http://www.w3.org/pub/WWW/TR/WD-png
  27.  
  28. # Define the name of this makefile.
  29. LIBPNG_MAK=libpng.mak
  30.  
  31. # PSRCDIR is defined in the platform-specific makefile, not here,
  32. # as the directory where the PNG library sources are stored.
  33. #PSRCDIR=libpng
  34. # PVERSION is defined in the platform-specific makefile, not here,
  35. # as the libpng version number (currently "88" or "89").
  36. #PVERSION=89
  37.  
  38. PSRC=$(PSRCDIR)$(D)
  39. CCCP=$(CCC) -I$(PSRCDIR) -I$(ZSRCDIR)
  40.  
  41. # We keep all of the PNG code in a separate directory so as not to
  42. # inadvertently mix it up with Aladdin Enterprises' own code.
  43. PDEP=$(AK)
  44.  
  45. png_1=png.$(OBJ) pngmem.$(OBJ) pngerror.$(OBJ)
  46. png_2=pngtrans.$(OBJ) pngwrite.$(OBJ) pngwtran.$(OBJ) pngwutil.$(OBJ)
  47.  
  48. # libpng modules
  49.  
  50. png.$(OBJ): $(PSRC)png.c $(PDEP)
  51.     $(CCCP) $(PSRC)png.c
  52.  
  53. # version 0.88 uses pngio.c
  54. pngio.$(OBJ): $(PSRC)pngio.c $(PDEP)
  55.     $(CCCP) $(PSRC)pngio.c
  56.  
  57. # version 0.89 uses pngwio.c
  58. pngwio.$(OBJ): $(PSRC)pngwio.c $(PDEP)
  59.     $(CCCP) $(PSRC)pngwio.c
  60.  
  61. pngmem.$(OBJ): $(PSRC)pngmem.c $(PDEP)
  62.     $(CCCP) $(PSRC)pngmem.c
  63.  
  64. pngerror.$(OBJ): $(PSRC)pngerror.c $(PDEP)
  65.     $(CCCP) $(PSRC)pngerror.c
  66.  
  67. pngtrans.$(OBJ): $(PSRC)pngtrans.c $(PDEP)
  68.     $(CCCP) $(PSRC)pngtrans.c
  69.  
  70. pngwrite.$(OBJ): $(PSRC)pngwrite.c $(PDEP)
  71.     $(CCCP) $(PSRC)pngwrite.c
  72.  
  73. pngwtran.$(OBJ): $(PSRC)pngwtran.c $(PDEP)
  74.     $(CCCP) $(PSRC)pngwtran.c
  75.  
  76. pngwutil.$(OBJ): $(PSRC)pngwutil.c $(PDEP)
  77.     $(CCCP) $(PSRC)pngwutil.c
  78.  
  79. # Define the version of libpng.dev that we are actually using.
  80. libpng.dev: $(MAKEFILE) libpng_$(SHARE_LIBPNG).dev
  81.     $(CP_) libpng_$(SHARE_LIBPNG).dev libpng.dev
  82.  
  83. # Define the shared version of libpng.
  84. libpng_1.dev: $(LIBPNG_MAK) $(ECHOGS_XE)
  85.     $(SETMOD) libpng_1 -lib png
  86.  
  87. # Define the non-shared version of libpng.
  88. libpng_0.dev: $(LIBPNG_MAK) libpng$(PVERSION).dev
  89.     $(CP_) libpng$(PVERSION).dev libpng_0.dev
  90.  
  91. libpng88.dev: $(LIBPNG_MAK) $(ECHOGS_XE)\
  92.  $(png_1) pngio.$(OBJ) $(png_2) zlibe.dev
  93.     $(SETMOD) libpng88 $(png_1) pngio.$(OBJ)
  94.     $(ADDMOD) libpng88 -obj $(png_2)
  95.     $(ADDMOD) libpng88 -include zlibe
  96.  
  97. libpng89.dev: $(LIBPNG_MAK) $(ECHOGS_XE)\
  98.  $(png_1) pngwio.$(OBJ) $(png_2) zlibe.dev
  99.     $(SETMOD) libpng89 $(png_1) pngwio.$(OBJ)
  100.     $(ADDMOD) libpng89 -obj $(png_2)
  101.     $(ADDMOD) libpng89 -include zlibe
  102.